package org.darkforest.model;

import org.darkforest.common.util.Page;

import java.math.BigDecimal;

public class VoucherTpl extends Page<VoucherTpl> {
    private Integer voucherTId;

    private String voucherTTitle;

    private String voucherTDesc;

    private Integer voucherTStartDate;

    private Integer voucherTEndDate;

    private Integer voucherTPrice;

    private BigDecimal voucherTLimit;

    private Integer voucherTStoreId;

    private String voucherTStorename;

    private Integer voucherTCreatorId;

    private Byte voucherTState;

    private Integer voucherTTotal;

    private Integer voucherTGiveout;

    private Integer voucherTUsed;

    private Integer voucherTAddDate;

    private Integer voucherTQuotaid;

    private Integer voucherTPoints;

    private Integer voucherTEachlimit;

    private String voucherTStyleimg;

    private String voucherTCustomimg;

    private Byte voucherTRecommend; //1推荐 0不推荐

    private Integer voucherTScId ;//所属店铺分类ID

    private String voucherTScName ;//所属店铺分类名称

    private String startDate; //生效开始日期  yyyy-mm-dd

    private String endDate; //失效日期  yyyy-mm-dd

    private Integer voucherNum;//登录用户领取数量

    private Integer memberId;

    private Integer priceMin;

    private Integer priceMax;

    private String discount;

    public String getDiscount() {
        return discount;
    }

    public void setDiscount(String discount) {
        this.discount = discount;
    }

    public Integer getPriceMin() {
        return priceMin;
    }

    public void setPriceMin(Integer priceMin) {
        this.priceMin = priceMin;
    }

    public Integer getPriceMax() {
        return priceMax;
    }

    public void setPriceMax(Integer priceMax) {
        this.priceMax = priceMax;
    }

    public Integer getMemberId() {
        return memberId;
    }

    public void setMemberId(Integer memberId) {
        this.memberId = memberId;
    }

    public Integer getVoucherNum() {
        return voucherNum;
    }

    public void setVoucherNum(Integer voucherNum) {
        this.voucherNum = voucherNum;
    }

    public String getStartDate() {
        return startDate;
    }

    public void setStartDate(String startDate) {
        this.startDate = startDate;
    }

    public String getEndDate() {
        return endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }

    public Integer getVoucherTScId() {
        return voucherTScId;
    }

    public void setVoucherTScId(Integer voucherTScId) {
        this.voucherTScId = voucherTScId;
    }

    public Byte getVoucherTRecommend() {
        return voucherTRecommend;
    }

    public void setVoucherTRecommend(Byte voucherTRecommend) {
        this.voucherTRecommend = voucherTRecommend;
    }

    public Integer getVoucherTId() {
        return voucherTId;
    }

    public void setVoucherTId(Integer voucherTId) {
        this.voucherTId = voucherTId;
    }

    public String getVoucherTTitle() {
        return voucherTTitle;
    }

    public void setVoucherTTitle(String voucherTTitle) {
        this.voucherTTitle = voucherTTitle == null ? null : voucherTTitle.trim();
    }

    public String getVoucherTDesc() {
        return voucherTDesc;
    }

    public void setVoucherTDesc(String voucherTDesc) {
        this.voucherTDesc = voucherTDesc == null ? null : voucherTDesc.trim();
    }

    public Integer getVoucherTStartDate() {
        return voucherTStartDate;
    }

    public void setVoucherTStartDate(Integer voucherTStartDate) {
        this.voucherTStartDate = voucherTStartDate;
    }

    public Integer getVoucherTEndDate() {
        return voucherTEndDate;
    }

    public void setVoucherTEndDate(Integer voucherTEndDate) {
        this.voucherTEndDate = voucherTEndDate;
    }

    public Integer getVoucherTPrice() {
        return voucherTPrice;
    }

    public void setVoucherTPrice(Integer voucherTPrice) {
        this.voucherTPrice = voucherTPrice;
    }

    public BigDecimal getVoucherTLimit() {
        return voucherTLimit;
    }

    public void setVoucherTLimit(BigDecimal voucherTLimit) {
        this.voucherTLimit = voucherTLimit;
    }

    public Integer getVoucherTStoreId() {
        return voucherTStoreId;
    }

    public void setVoucherTStoreId(Integer voucherTStoreId) {
        this.voucherTStoreId = voucherTStoreId;
    }

    public String getVoucherTStorename() {
        return voucherTStorename;
    }

    public void setVoucherTStorename(String voucherTStorename) {
        this.voucherTStorename = voucherTStorename == null ? null : voucherTStorename.trim();
    }

    public Integer getVoucherTCreatorId() {
        return voucherTCreatorId;
    }

    public void setVoucherTCreatorId(Integer voucherTCreatorId) {
        this.voucherTCreatorId = voucherTCreatorId;
    }

    public Byte getVoucherTState() {
        return voucherTState;
    }

    public void setVoucherTState(Byte voucherTState) {
        this.voucherTState = voucherTState;
    }

    public Integer getVoucherTTotal() {
        return voucherTTotal;
    }

    public void setVoucherTTotal(Integer voucherTTotal) {
        this.voucherTTotal = voucherTTotal;
    }

    public Integer getVoucherTGiveout() {
        return voucherTGiveout;
    }

    public void setVoucherTGiveout(Integer voucherTGiveout) {
        this.voucherTGiveout = voucherTGiveout;
    }

    public Integer getVoucherTUsed() {
        return voucherTUsed;
    }

    public void setVoucherTUsed(Integer voucherTUsed) {
        this.voucherTUsed = voucherTUsed;
    }

    public Integer getVoucherTAddDate() {
        return voucherTAddDate;
    }

    public void setVoucherTAddDate(Integer voucherTAddDate) {
        this.voucherTAddDate = voucherTAddDate;
    }

    public Integer getVoucherTQuotaid() {
        return voucherTQuotaid;
    }

    public void setVoucherTQuotaid(Integer voucherTQuotaid) {
        this.voucherTQuotaid = voucherTQuotaid;
    }

    public Integer getVoucherTPoints() {
        return voucherTPoints;
    }

    public void setVoucherTPoints(Integer voucherTPoints) {
        this.voucherTPoints = voucherTPoints;
    }

    public Integer getVoucherTEachlimit() {
        return voucherTEachlimit;
    }

    public void setVoucherTEachlimit(Integer voucherTEachlimit) {
        this.voucherTEachlimit = voucherTEachlimit;
    }

    public String getVoucherTStyleimg() {
        return voucherTStyleimg;
    }

    public void setVoucherTStyleimg(String voucherTStyleimg) {
        this.voucherTStyleimg = voucherTStyleimg == null ? null : voucherTStyleimg.trim();
    }

    public String getVoucherTCustomimg() {
        return voucherTCustomimg;
    }

    public void setVoucherTCustomimg(String voucherTCustomimg) {
        this.voucherTCustomimg = voucherTCustomimg == null ? null : voucherTCustomimg.trim();
    }

    public String getStateDes(){
        if(this.getVoucherTState()==1){
            return "有效";
        }else{
            return "失效";
        }
    }

    public String getRecommendDes(){
        if(this.getVoucherTState()==1){
            return "推荐";
        }else{
            return "不推荐";
        }
    }

    public String getVoucherTScName() {
        return voucherTScName;
    }

    public void setVoucherTScName(String voucherTScName) {
        this.voucherTScName = voucherTScName;
    }
}